<?php
echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo "<hr>";
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
?>